package tw.com.msig.b2c.car.security.dao.impl;

import tw.com.msig.b2c.car.common.dao.impl.GenericHibernateDaoImpl;
import tw.com.msig.b2c.car.security.dao.UserDao;
import tw.com.msig.b2c.car.security.vo.UserVo;

public class UserDaoImpl extends GenericHibernateDaoImpl<UserVo> implements UserDao {

	@Override
	public UserVo findByAccount(String account) {
		return (UserVo) getSession().createQuery("from UserVo where account = :account")
									.setString("account", account)
									.uniqueResult();
	}

	
	
	
}
